﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kaiser.Modules.DC.Models;

namespace Kaiser.Modules.DC.Repositories
{
    public interface IDCRepositories
    {
        int DeleteProductList(string ids);

        void InsertProduct(ProductInput model);

        void UpdateProduct(ProductInput model);

        Kaiser.Models.DataGrid<Models.ProductInput> SearchProduct(Models.DCSearch search, Kaiser.Models.PagingInfo pageinfo);

        Kaiser.Models.DataGrid<Models.OrderDetailInput> SearchOrderDetail(Models.DCSearch search, Kaiser.Models.PagingInfo pageinfo);

        int DeleteOrderList(string ids);

        int DeleteOrderDetailList(string ids);

        void InsertOrderDetail(Models.OrderDetailInput model);

        void UpdateOrderDetail(Models.OrderDetailInput model);

        void InsertOrder(OrderInput model);

        void UpdateOrder(OrderInput model);

        Kaiser.Models.DataGrid<Models.OrderStatisticsInput> OrderStatisticsList(Models.DCSearch search, Kaiser.Models.PagingInfo pageinfo);

        Kaiser.Models.DataGrid<Models.OrderDetailStatistics> OrderDetailStatisticsList(Models.DCSearch search, Kaiser.Models.PagingInfo pageinfo);

        Kaiser.Models.DataGrid<Models.OrderInput> SearchOrder(Models.DCSearch search, Kaiser.Models.PagingInfo pageinfo);
    }
}
